(function(){
	angular.module('app')
		.factory('RechargeFactory',fn);
	function fn(urlCnst) {
		var self = {};
		self.rechargeByUsername = function (username,asset, cb) {
		    urlCnst.post('admin-user/' + username + '/asset',asset,cb);
        };
		/*从获取用户信息的函数中提取asset*/
		self.getAsset = function (username,cb) {
            urlCnst.get('admin-user/'+username,cb);
        };
	    return self;
    }
})();
